package com.gxa.admin.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.gxa.admin.mapper.UserMapper;
import com.gxa.service.UserRpcService;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;

/**
 * @author lch
 * @date 2024/3/26 16:00
 * @description
 **/
@Service
public class UserRpcServiceImpl implements UserRpcService {

    @Autowired
    private UserMapper userMapper;


    /**
     * 更新用户余额
     * @param money
     * @param userId
     */
    @Override
    public void updateUserMoney(BigDecimal money, Integer userId) {
        this.userMapper.updateUserMoney(money,userId);
    }
}
